package com.senyin.entity;

import java.util.Objects;

public class Dept {
    /**
     * 序号uuid
     */
    private String dpId;

    /**
     * 部门名称
     */
    private String dpName;

    /**
     * 部门描述
     */
    private String dpDes;

    public Dept() {
    }

    public Dept(String dpId, String dpName, String dpDes) {
        this.dpId = dpId;
        this.dpName = dpName;
        this.dpDes = dpDes;
    }

    public Dept(String dpName, String dpDes) {
        this.dpName = dpName;
        this.dpDes = dpDes;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "dpId='" + dpId + '\'' +
                ", dpName='" + dpName + '\'' +
                ", dpDes='" + dpDes + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Dept dept = (Dept) o;
        return Objects.equals(dpId, dept.dpId) && Objects.equals(dpName, dept.dpName) && Objects.equals(dpDes, dept.dpDes);
    }

    @Override
    public int hashCode() {
        return Objects.hash(dpId, dpName, dpDes);
    }

    public String getDpId() {
        return dpId;
    }

    public void setDpId(String dpId) {
        this.dpId = dpId;
    }

    public String getDpName() {
        return dpName;
    }

    public void setDpName(String dpName) {
        this.dpName = dpName;
    }

    public String getDpDes() {
        return dpDes;
    }

    public void setDpDes(String dpDes) {
        this.dpDes = dpDes;
    }
}
